package com.jzo2o.orders.manager.controller.operation;

import com.jzo2o.api.orders.dto.response.OrderSimpleResDTO;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.orders.manager.model.dto.request.OrderPageQueryReqDTO;
import com.jzo2o.orders.manager.service.IOrdersManagerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author itcast
 */
@RestController("operationOrdersController")
@Api(tags = "运营端-订单相关接口")
@RequestMapping("/operation/orders")
public class OperationOrdersController {
    @Autowired
    private IOrdersManagerService managerService;
    @GetMapping("/page")
    @ApiOperation("分页查询")
    public PageResult<OrderSimpleResDTO> pageQuery(OrderPageQueryReqDTO dto){
         return managerService.pageQuery(dto);
    }

}
